package org.zuel.boot.demo.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.zuel.boot.demo.entity.Employment;
import org.zuel.boot.demo.entity.SysUser;
import org.zuel.boot.demo.web.JsonResult;
import org.zuel.boot.demo.web.PageParam;
import org.zuel.boot.demo.web.PageResult;



/**
 *  服务接口
 * @author ikun
 */
public interface IEmploymentService extends IService<Employment> {

    /**
     * 查询列表
     * @param page page
     * @return PageResult<Employment>
     */
    IPage<Employment> list1(PageParam<Employment> page, SysUser user);
    /**
     * 查询列表
     * @param user user
     * @return PageResult<Employment>
     */
    IPage<Employment> list2(PageParam<Employment> pageParam, SysUser user);
    IPage<Employment> list3(PageParam<Employment> pageParam, SysUser user);


    /**
     * 根据id查询单个信息
     * @param id id
     * @return JsonResult
     */
    JsonResult read(Integer id);

    /**
     * 添加
     * @param model 信息
     * @return JsonResult
     */
    JsonResult add(Employment model, SysUser user);
    JsonResult add1(Employment model, SysUser user);

    /**
     * 修改信息
     * @param model 信息
     * @return JsonResult
     */
    JsonResult update(Employment model);

    JsonResult agree(Employment model);

    /**
     * 根据ids删除
     * @param ids ids
     * @return JsonResult
     */
    JsonResult delete(Integer[] ids);
    IPage<Employment> list11(PageParam<Employment> pageParam, SysUser user);
    IPage<Employment> list21(PageParam<Employment> pageParam, SysUser user);
    IPage<Employment> list31(PageParam<Employment> pageParam, SysUser user);
}